package com.woniu.service;

import com.woniu.entity.PageResult;
import com.woniu.pojo.Card;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.pojo.Card;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.vo.BuyCardVo;
import com.woniu.vo.CardSearchVo;
import com.woniu.vo.QueryCardVo;
import com.woniu.vo.cardVo;

import java.util.List;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
<<<<<<< HEAD
 * @author xie
=======
 * @author zbk
>>>>>>> 81444e4a262d317c7f42f747d976efc38ad8d785
 * @since 2022-10-12
 */
public interface ICardService extends IService<Card> {

    PageResult queryByItemInPage(long currentPage, long pageSize, Card card);
    /**
     * 根据团课id查询会员卡
     * @param leagueId
     * @return
     */

    List<CardSearchVo> queryByLeagueId(String leagueId);

    List<cardVo> byCardType();

    List<Card> queryByMemberId(String memberId);

    List<Card> byTimetableId(String id);

    List<BuyCardVo> queryAllBuy();

    BuyCardVo queryBuyById(String id);

    int buyCard(BuyCardVo vo);

}
